
public class SleepIn {

	public static void main(String[] args) {
		
		sleepIn(true,false); //false
		sleepIn(false,true); //true
		sleepIn(true,true);  //impossible
		sleepIn(false,false); //true
		
	}

	private static void sleepIn(boolean b, boolean c) {

/*		if( !b ){
			System.out.println("true");
		}
		
		else if(!c){
			System.out.println("false");
		}
		else System.out.println("error");
*/
		boolean d; 
		d =  !b | (!b & c) | c; 
		
		if( b && c ){
			System.out.print("not allowed\t");
		}
		System.out.println(d);
		
	}

}


